import request from '@/utils/request';

// 查询会员基础配置
export function queryVipConfig(data) {
  return request({
    url: '/console/vip/queryVipConfig',
    method: 'POST',
    data
  });
}
// 查询会员权益配置
export function queryVipRights(data) {
  return request({
    url: '/console/vip/listVipRights',
    method: 'POST',
    data
  });
}
// 删除会员权益
export function removeVipRights(data) {
  return request({
    url: '/console/vip/removeVipRights',
    method: 'POST',
    data
  });
}
// 保存/修改会员基础配置
export function saveVipConfig(data) {
  return request({
    url: '/console/vip/saveVipConfig',
    method: 'POST',
    data
  });
}
// 保存/修改会员权益列表
export function saveVipRights(data) {
  return request({
    url: '/console/vip/saveVipRights',
    method: 'POST',
    data
  });
}
// 查询会员基础配置列表
export function listVipConfig(data) {
  return request({
    url: '/console/vip/listVipConfig',
    method: 'POST',
    data
  });
}

// 查询会员权益配置列表
export function listVipRights(data) {
  return request({
    url: '/console/vip/listVipRights',
    method: 'POST',
    data
  });
}
// 导出会员权益
export function exportVipRights(data) {
  return request({
    url: '/console/vip/exportVipRights',
    method: 'POST',
    responseType: 'blob',
    data
  });
}